package cms.jason.entity;

import com.cn.lotary.base.dao.AbstractEntity;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;
import javax.validation.constraints.Size;
import javax.xml.bind.annotation.XmlRootElement;

/**
 *
 * @author Jason
 */
@Entity
@Table(catalog = "cms", name = "top_image", schema = "")
@XmlRootElement
public class TopImage extends AbstractEntity {

    private static final long serialVersionUID = 1L;
    @Size(max = 45)
    @Column(name = "src")
    private String src;
    @Size(max = 45)
    @Column(name = "remark", length = 45)
    private String remark;
    @Column(name = "display")
    private boolean display;
    @Column(name = "sequence")
    private int sequence;
    @Column(name = "description")
    private String description;

    public TopImage() {
    }

    public String getSrc() {
        return src;
    }

    public void setSrc(String src) {
        this.src = src;
    }

    public String getRemark() {
        return remark;
    }

    public void setRemark(String remark) {
        this.remark = remark;
    }

    public boolean isDisplay() {
        return display;
    }

    public void setDisplay(boolean display) {
        this.display = display;
    }

    public int getSequence() {
        return sequence;
    }

    public void setSequence(int sequence) {
        this.sequence = sequence;
    }

    public String getDescription() {
        return description;
    }

    public void setDescription(String description) {
        this.description = description;
    }

    @Override
    public String toString() {
        return "TopImage{" + "src=" + src + ", remark=" + remark + ", show=" + display + ", sequence=" + sequence + ", description=" + description + '}';
    }
}
